/**
 * 取消预约申请判断是否已经有取消
 */
function main(params) {
    debugger
    let appointmentVerifyId = params.id.value;
    let appointmentStateId = -2;
    let flag = false;
    const self = this;
    return new Promise((resolve, reject) => {
        api.EXEC_FORMULA(`ENTITY_SELECT_MANY('ds_tbl:t_bff53c221c8c45898d6ce2809c4eb637',id,QUERY_AND(QUERY_EQ(appointment_state_id,'${appointmentStateId}'),QUERY_EQ(appointment_verify_id,'${appointmentVerifyId}')))`)
            .then(pcResponse => {
                let len = pcResponse.result.length;
                if(len > 0){
                    self.$message.warning("该摊位已申请取消预约，请等待审核！");
                    flag = false;
                }else {
                    flag = true;
                }
                resolve(flag);
            });
    })

}
